<template>
  <div class="author">
    <!-- 卡片容器 -->
    <div class="cardContainer">
      <div class="authorCard" v-for="(data, index) in authorList" :key="index">
        <div class="icon">
          <img ref="image" :src="require('@/assets/author/' + data + '.png')" />
        </div>
        <p class="name">{{ data }}</p>
        <p class="job">{{ data != "CJ" ? "Mod制作&分享" : "软件开发" }}</p>
      </div>
    </div>
    <!-- 其他内容容器 -->
  </div>
</template>

<script>
/*eslint-disable*/
export default {
  name: "作者列表",
  data() {
    return {
      authorList: ["CJ", "校花", "无人风", "Russ", "咸鱼", "孔乙己"],
    };
  },
};
</script>

<style lang="less" scoped>
@import "../less/variables.less";
.author {
  > .cardContainer {
    display: flex;
    flex-direction: row;
    > .authorCard {
      margin: 1%;
      border-radius: 5px;
      box-shadow: 2px 2px 5px 0.1px rgba(0, 0, 0, 0.5);
      width: @jerseyWidth;
      height: @jerseyHeight;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      > .icon {
        box-shadow: @box-shadow;
        width: 70px;
        height: 70px;
        border-radius: 50%;
        overflow: hidden;
        position: relative;
        transition: width 0.3s ease;
        transition: height 0.3s ease;
        > img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          position: absolute;
          top: 0;
          left: 0;
        }
      }
      > .name {
        color: @red;
        font-size: 150%;
        font-weight: bold;
        font-family: "华文中宋";
      }
      > .job {
        color: #979797;
      }
    }
    > .authorCard:first-child {
      > .name {
        font-family: "FreeStyle script";
      }
    }
    > .authorCard:hover .icon {
      width: 75px;
      height: 75px;
    }
  }

  > .otherContainer {
    padding: 2%;
    > div {
      display: flex;
      flex-direction: row;
      align-items: center;
      > .bar {
        width: 5px;
        height: 20px;
        background-color: @red;
        border-radius: 5px;
        margin-right: 10px;
      }
    }
    > img {
      box-shadow: @box-shadowRed;
    }
  }
}
</style>